//
//  ViewController.m
//  拖拽手势画图
//
//  Created by MB__Lee on 2018/5/8.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "ViewController.h"

#import "Canvers.h"

@interface ViewController ()<CanversDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
    Canvers *canver = [[Canvers alloc] initWithFrame:self.view.bounds];
    [self.view addSubview: canver];
    
    canver.delegate = self;
    canver.backgroundColor = [UIColor grayColor];
    canver.removeAllPoints = YES;
    
    NSLog(@"----%zd",canver.pointArr.count);
    
    
}
-(void)canversView:(Canvers *)canver streamSendPoints:(NSMutableArray *)pionts{
    NSLog(@"%zd",pionts.count);
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
